package com.eaoa.uc.pubmessage.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.pub.PubMessageDAO;
import com.eaoa.vo.pub.PubMessage;

public class MessageDeleteBO extends EABaseBusinessObject {

	private Long messageno;

	private static PubMessageDAO messageDAO = new PubMessageDAO();

	public MessageDeleteBO(Long messageno) {
		super();
		this.messageno = messageno;
	}

	protected void performBusinessLogic() {

		PubMessage po = (PubMessage) messageDAO.loadAndLock(messageno);

		messageDAO.delete(po);

	}

}
